const Controller = require('egg').Controller

class HouseOverviewCotroller extends Controller {
    async getHouseOverviewById() {
        const { id } = this.ctx.request.body
        const houseOverview = await this.service.house.houseOverview.getHouseOverviewById(parseInt(id))
        const res = {
            status: 0,
            houseOverview,
        }
        this.ctx.body = res
    }
}

module.exports = HouseOverviewCotroller
